import request from "@/utils/request";

// 查询发票详情列表
export function listCsmInvoiceD(query) {
  return request({
    url: "/machine/csmInvoiceD/list",
    method: "get",
    params: query,
  });
}

// 查询发票详情详细
export function getCsmInvoiceD(id) {
  return request({
    url: "/machine/csmInvoiceD/" + id,
    method: "get",
  });
}

// 新增发票详情
export function addCsmInvoiceD(data) {
  return request({
    url: "/machine/csmInvoiceD",
    method: "post",
    data: data,
  });
}

// 修改发票详情
export function updateCsmInvoiceD(data) {
  return request({
    url: "/machine/csmInvoiceD",
    method: "put",
    data: data,
  });
}

// 删除发票详情
export function delCsmInvoiceD(id) {
  return request({
    url: "/machine/csmInvoiceD/" + id,
    method: "delete",
  });
}

// 查询入库开票数据
export function invoiceLkList(query) {
  return request({
    url: "/machine/csmInvoiceD/invoiceLkList",
    method: "get",
    params: query,
  });
}

// 查询出库应收数据
export function invoiceCkList(query) {
  return request({
    url: "/machine/csmInvoiceD/invoiceCkList",
    method: "get",
    params: query,
  });
}

// 查询结算开票数据
export function invoiceClearList(query) {
  return request({
    url: "/machine/csmInvoiceD/invoiceClearList",
    method: "get",
    params: query,
  });
}
